//
//  CTHomePageTableView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/6/5.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CTHotSpotsItem;
@class CTSubjectItem;
@class CTHotSpotsDetailItem;
@class CTComment;
@class CTListDetailUser;
@class CTTopic;
@protocol CTHomePageTableViewDelegate;

@interface CTHomePageTableView : UIView

@property(nonatomic,assign)id<CTHomePageTableViewDelegate>delegate;
@property(nonatomic,strong)CTHotSpotsItem * item;
@property(nonatomic,strong)CTHotSpotsItem * currentHotSpotsItem;
@property(nonatomic,setter=setHotSpotDetailListArr:)NSArray * infoArray;
@property(nonatomic,setter=setSubjectArr:)CTSubjectItem * subjItem;

-(void)refresh;
-(void)refreshPullDownEnd;
-(void)refreshPullUpEnd;

-(void)reloadData;

@end


@protocol CTHomePageTableViewDelegate <NSObject>

-(void)refreshControlPullDown:(CTHomePageTableView *)view;
-(void)refreshControlPullUp:(CTHomePageTableView *)view;

//主题代理
-(void)subjectCheckAction:(CTHomePageTableView *)view;
-(void)subjectShareAction:(CTHomePageTableView *)view;



//cell代理
/**
 *@brief 点击评论总数
 */
- (void)homePageTableViewCommentCountAction:(CTHomePageTableView *)cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第一条
 */
- (void)homePageTableViewCommentHitFirstLabelAction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第二条
 */
- (void)homePageTableViewCommentHitSecondLabelAction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击评论第一条头像
 */
- (void)homePageTableViewCommentHitFirstHeadAction:(CTHomePageTableView *)cell withItem:(CTComment *) item;
/**
 *@brief 点击评论第二条头像
 */
- (void)homePageTableViewCommentHitSecondHeadAction:(CTHomePageTableView *)cell withItem:(CTComment *)item;
/**
 *@brief 点击头像
 */
- (void)homePageTableViewHitHeadAction:(CTHomePageTableView *)cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击大图
 */
- (void)homePageTableViewHitPicImageBtnAction:(CTHomePageTableView *)cell withItem:(CTHotSpotsDetailItem *)item withImageView:(UIImageView *) picImageView;
/**
 *@brief 点赞
 */
- (void)homePageTableViewHitFavourBtnAction:(CTHomePageTableView *)cell withItem:(CTHotSpotsDetailItem *)item withBool:(BOOL) favBool;
/**
 *@brief 点击评论按钮
 */
- (void)homePageTableViewHitCommentBtnaction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击分享按钮
 */
- (void)homePageTableViewHitShareBtnAction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item withImage:(UIImage *)img;
/**
 *@brief 点击更多按钮
 */
- (void)homePageTableViewHitMoreBtnAction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item;
/**
 *@brief 点击点赞的人的头像
 */
- (void)homePageTableViewHitFavBtnHeadAction:(CTHomePageTableView *)cell withItem:(CTListDetailUser *)item;
/**
 *@brief 点击关注按钮
 */
- (void)homePageTableViewHitAttentionBtnAction:(CTHomePageTableView *) cell withItem:(CTHotSpotsDetailItem *)item withBool:(BOOL)attenBool;
/**
 *@brief 点击话题
 */
- (void)homePageTableViewHitTopicBtnAction:(CTHomePageTableView *) cell withItem:(CTTopic *)item;

@end